package com.cecsmsserve.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cecsmsserve.entity.DiningFeedback;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface DiningFeedbackMapper extends BaseMapper<DiningFeedback> {
    
    /**
     * 更新反馈回复内容
     * @param id 反馈ID
     * @param reply 回复内容
     * @return 影响的行数
     */
    @Update("UPDATE dining_feedback SET admin_reply = #{reply}, status = 1, reply_time = NOW() WHERE id = #{id}")
    int updateReply(@Param("id") Integer id, @Param("reply") String reply);
} 